package expertise.service.controllers;

import javax.annotation.Resource;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;

import org.springframework.stereotype.Component;

import expertise.security.authentication.user.ExpertiseUser;

@Component
@Path("/home")
public class HomeController {

    @Resource
    private ExpertiseUser user;

    @GET
    public Response serveHomePage() {
        // System.err.println(user.getEmail());
        return Response.ok("here " + user.getEmail()).build();

    }

}
